package net.comm.oper.bean;

import net.comm.common.GlbFinal;

public class Baseoperlog {

	private int  	OperID;			//操作ID
	private int  	UserID;			//会员ID
	private int  	Type;			//操作板块
	private String  Content;		//操作内容
	private String  Mtime;			//最后修改日期

	public Baseoperlog( int operID, int userID, int type,String content, String time) {
		super();
		Content = content;
		Mtime = time;
		OperID = operID;
		Type = type;
		UserID = userID;
	}

	public Baseoperlog() {
		super();
		// TODO Auto-generated constructor stub
		
		Content = "";
		OperID = 0;
		Type = 0;
		UserID = 0;		
		Mtime = "";
	}

	public int getUserID() {
		return UserID;
	}

	public void setUserID(int userID) {
		UserID = userID;
	}

	public String getContent() {
		return Content;
	}

	public String getContent2() {
		//<a href='/users_home/userID_100037.html'>lxm</a>发表了新日志：<a title='邻居动态和社区动态里都不能评论发言！' href='/blog_detail/blogID_905.html'>邻居动态和</a>
		//<a href='/users_home/userID_100018.html'>下雨了</a>上传了 1 张<a title='照片' href='/gpic_adlist/qryGAlbumID_109.html'>照片</a>
		
		if(this.Content.indexOf("发表了新日志") != -1) {
			this.Content = this.Content.replace("href='/blog_detail", "href='#/blog_detail");
			this.Content = this.Content.replace("href='" + GlbFinal.FOLDER_INSTALL + "/blog_detail", "href='#/blog_detail");
		} else if(this.Content.indexOf("上传了") != -1) {
			this.Content = this.Content.replace("href='/gpic_adlist", "href='#/gpic_adlist");
			this.Content = this.Content.replace("href='" + GlbFinal.FOLDER_INSTALL + "/gpic_adlist", "href='#/gpic_adlist");
		}
		
		return this.Content;
	}


	public void setContent(String content) {
		Content = content;
	}

	public int getOperID() {
		return OperID;
	}

	public int getType() {
		return Type;
	}

	public String getMtime() {
		return Mtime;
	}

	public void setOperID(int operID) {
		OperID = operID;
	}

	public void setType(int type) {
		Type = type;
	}

	public void setMtime(String mtime) {
		Mtime = mtime;
	}

	public static void main(String[] args) {

		
	}


	
}
